SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO


CREATE PROCEDURE dbo.DnnProduct_UpdatePortalSetup
	@PortalId				int,
	@AdministratorId		int,
	@AdministratorRoleId	int,
	@RegisteredRoleId		int,
	@SplashTabId			int,
	@HomeTabId				int,
	@LoginTabId				int,
	@RegisterTabId			int,
	@UserTabId				int,
	@SearchTabId          int,
	@AdminTabId				int,
	@CultureCode			nvarchar(50)

AS
	UPDATE dbo.DnnProduct_Portals
		SET    
			AdministratorId = @AdministratorId, 
			AdministratorRoleId = @AdministratorRoleId, 
			RegisteredRoleId = @RegisteredRoleId
	WHERE  PortalId = @PortalId

	UPDATE dbo.DnnProduct_PortalLocalization
		SET 
			HomeTabId = @HomeTabId,
			LoginTabId = @LoginTabId,
			UserTabId = @UserTabId,
			RegisterTabId = @RegisterTabId,
			AdminTabId = @AdminTabId,
			SplashTabId = @SplashTabId,
			SearchTabId = @SearchTabId
      WHERE portalID = @PortalID
GO
